﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="ZLGLListView.aspx.cs" Inherits="WXYW.ZLGLListView" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitlePlaceHolder" runat="server">
    查看资料/报告
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ButtonPlaceHolder" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="RightContentPlaceHolder" runat="server">
    <asp:GridView ID="resourceGridView" CssClass="tableList" runat="server" AutoGenerateColumns="False"
        AllowPaging="True" PageSize="20" Width="100%" BorderColor="#888888" OnPageIndexChanging="resourceGridView_PageIndexChanging"
        OnDataBound="resourceGridView_DataBound" OnRowDataBound="resourceGridView_RowDataBound">
        <Columns>
            <asp:TemplateField HeaderImageUrl="~/image/operateicon/button_Select.gif">
                <EditItemTemplate>
                    <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
                </EditItemTemplate>
                <ItemTemplate>
                    <asp:Label ID="IDLbl" runat="server"></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:BoundField HeaderText="产品型号" DataField="ProductType" />
            <asp:BoundField HeaderText="故障类型" DataField="ProblemType" />
            <asp:BoundField HeaderText="故障详细描述" DataField="ProblemDescription" />
            <asp:BoundField HeaderText="故障分析" DataField="ProblemAnalyze" />
            <asp:BoundField HeaderText="处理状态" DataField="Status" />
            <asp:TemplateField HeaderText="提交日期">
                <ItemTemplate>
                    <%#Convert.ToDateTime(Eval("SubmitDate")).ToString("yyyy-MM-dd") %>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:BoundField HeaderText="提交者" DataField="SubmitPerson" />
            <asp:TemplateField HeaderText="处理日期">
                <ItemTemplate>
                    <%#Convert.ToDateTime(Eval("DealWithDate")).ToString("yyyy-MM-dd") %>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:BoundField HeaderText="处理者" DataField="DealPerson" />
            <asp:TemplateField HeaderText="操作">
                <ItemTemplate>
                    <img src="image/operateicon/docview.gif" />
                    <asp:LinkButton ID="modifyLinkButton" runat="server" OnClick="modifyLinkButton_Click"
                        CommandArgument='<%#Eval("ID") %>'>修改</asp:LinkButton>
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
        <PagerTemplate>
            本类记录<span style="color: Red"><%= resourceGridView.Rows.Count%></span>条, <span style="color: Red">
                20</span>条/页 当前 <span style="color: Red">
                    <%= resourceGridView.PageIndex + 1%>/<%= resourceGridView.PageCount%></span>页
            <asp:LinkButton CommandName="Page" CommandArgument="First" ID="LinkButton1" runat="server"
                Style="color: blue">首页</asp:LinkButton><asp:LinkButton CommandName="Page" CommandArgument="Prev"
                    ID="LinkButton2" runat="server" Style="color: blue">|上一页</asp:LinkButton>
            <asp:LinkButton CommandName="Page" CommandArgument="Next" ID="LinkButton3" runat="server"
                Style="color: blue">下一页</asp:LinkButton><asp:LinkButton CommandName="Page" CommandArgument="Last"
                    ID="LinkButton4" runat="server" Style="color: blue">|尾页</asp:LinkButton>
            转到<asp:DropDownList ID="pageDDL" runat="server" AutoPostBack="True" OnSelectedIndexChanged="pageDDL_SelectedIndexChanged">
            </asp:DropDownList>
        </PagerTemplate>
        <HeaderStyle ForeColor="White" Font-Bold="True" BackColor="#A55129"></HeaderStyle>
    </asp:GridView>
    <asp:HiddenField ID="hftaskID" runat="server" />
    <cc1:ModalPopupExtender ID="updateModalPopupExtender" PopupControlID="Panel1" BackgroundCssClass="modalBackground"
        TargetControlID="hiddenTargetControlForModalPopup" runat="server" CancelControlID="LinkButton3">
    </cc1:ModalPopupExtender>
    <asp:Panel ID="Panel1" runat="server" Style="display: none" BackImageUrl="~/image/mainSkinBG.gif"
        CssClass="modalPopup" Width="500px">
        <!-- Header -->
        <div class="box-header" id="Div1">
            <img src="image/stdBox_left_top.gif" alt="" />
            <h2 align="center">
                故障报告</h2>
        </div>
        <div align="center">
            <table width="100%" border="1" style="border-collapse: collapse">
                <tr style="height: 25px">
                    <td>
                        产品类型
                    </td>
                    <td>
                        故障类型
                    </td>
                    <td>
                        故障详细描述
                    </td>
                </tr>
                <tr style="height: 25px">
                    <td>
                        <asp:Label ID="productTypeLabel" runat="server" Text=""></asp:Label>
                    </td>
                    <td>
                        <asp:Label ID="problemTypeLabel" runat="server" Text=""></asp:Label>
                    </td>
                    <td>
                        <asp:Label ID="descriptionLabel" runat="server" Text=""></asp:Label>
                    </td>
                </tr>
                <tr style="height: 25px">
                    <td colspan="3">
                        解决方案
                    </td>
                </tr>
                <tr>
                    <td colspan="3">
                        <asp:TextBox ID="solutionTextBox" runat="server" TextMode="MultiLine" Height="50"
                            Width="100%" ReadOnly="true"></asp:TextBox>
                    </td>
                </tr>
            </table>
            <img src="image/operateicon/docdelete.gif" alt="" />
            <asp:LinkButton ID="LinkButton3" runat="server">关闭</asp:LinkButton>
        </div>
        <div class="box-footer">
            <img alt="" src="image/stdBox_left_bottom.gif" />
            <p>
                &nbsp;</p>
        </div>
    </asp:Panel>
    <asp:Button runat="server" ID="hiddenTargetControlForModalPopup" Style="display: none" />
</asp:Content>
